package com.yanqu.road.server.timer.activity;

import com.yanqu.road.server.manger.activity.tonbing.TonBingMgr;
import com.yanqu.road.server.manger.activity.tonbingchannel.ChannelTonBingMgr;
import com.yanqu.road.server.manger.activity.tongbing.ChuHanMgr;
import com.yanqu.road.utils.executor.GeneralTask;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

/**
 */
public class TonBingTask extends GeneralTask {
    protected Logger logger = LogManager.getLogger(TonBingTask.class.getName());

    @Override
    public void doRun() {
        try {
            TonBingMgr.checkRegistrationList();
        }catch (Exception e) {
            logger.error(e.getMessage(), e);
        }

        try {
            ChannelTonBingMgr.getPromotionUnionList();
        }catch (Exception e) {
            logger.error(e.getMessage(), e);
        }

        try {
            ChuHanMgr.checkRegistrationList();
        }catch (Exception e) {
            logger.error(e.getMessage(), e);
        }

    }
}

